package com.sn.author.controller;

import com.sn.author.common.annotation.Advice;
import com.sn.author.common.annotation.IgnoreToken;
import com.sn.author.domain.BaseResult;
import com.sn.author.domain.dto.DyAccountDTO;
import com.sn.author.domain.vo.DyAccountQueryVo;
import com.sn.author.domain.vo.PageVo;
import com.sn.author.service.dao.DyAccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author xiaom
 * @Date 2020/10/9 11:24
 * @Version 1.0.0
 * @Description <>
 **/
@RestController
@RequestMapping(value = "/dyAccount")
@Api(tags = "抖音账号")
public class DyAccountController {

    @Autowired
    private DyAccountService dyAccountService;

    @ApiOperation("获取私信用户列表")
    @PostMapping(value = "/list")
    public BaseResult<List<DyAccountDTO>> list(@RequestBody DyAccountQueryVo dyAccountQueryVo){
        return dyAccountService.list(dyAccountQueryVo);
    }
}
